const path = require('path');
const resolve = dir => path.join(__dirname, dir);

module.exports = {
  lintOnSave: true,
  configureWebpack: {
    resolve: {
      alias: {
        '~': __dirname,
        config: resolve('config'),
        api: resolve('api'),
        store: resolve('store'),
        components: resolve('components'),
        pages: resolve('pages'),
        common: resolve('common'),
        plugins: resolve('plugins'),
        utils: resolve('utils'),
      },
    },
  },
};
